{{extend defaultLayout}}

{{block 'css'}}
<link rel="stylesheet" type="text/css" href="{{_res_path}}Template/userInfo/userInfo.css"/>
{{/block}}

{{block 'main'}}
<div class="container">
    <div class="header">
        {{if userData && roleInfo}}
        <img class="avatar" src="{{userData.picurl}}" alt="avatar" />
        <div class="user-info">
            <div class="username">{{roleInfo.charac_name}}</div>
            <div class="level">Lv. {{roleInfo.level}}</div>
            <div class="uid">UID: {{roleInfo.uid}}</div>
        </div>
        {{/if}}
    </div>

    {{if careerData}}
    <div class="stats-grid">
        <div class="stat-card">
            <h3>烽火地带</h3>
            <p><strong>排位分:</strong> <span>{{careerData.rankpoint || '-'}}</span></p>
            <p><strong>总对局:</strong> <span>{{careerData.soltotalfght || '-'}}</span></p>
            <p><strong>总撤离:</strong> <span>{{careerData.solttotalescape || '-'}}</span></p>
            <p><strong>撤离率:</strong> <span>{{careerData.solescaperatio || '-'}}</span></p>
            <p><strong>总击杀:</strong> <span>{{careerData.soltotalkill || '-'}}</span></p>
            <p><strong>游戏时长:</strong> <span>{{careerData.solduration || '-'}}</span></p>
        </div>
        <div class="stat-card">
            <h3>全面战场</h3>
            <p><strong>排位分:</strong> <span>{{careerData.tdmrankpoint || '-'}}</span></p>
            <p><strong>总对局:</strong> <span>{{careerData.tdmtotalfight || '-'}}</span></p>
            <p><strong>总胜场:</strong> <span>{{careerData.totalwin || '-'}}</span></p>
            <p><strong>胜率:</strong> <span>{{careerData.tdmsuccessratio || '-'}}</span></p>
            <p><strong>总击杀:</strong> <span>{{careerData.tdmtotalkill || '-'}}</span></p>
            <p><strong>游戏时长:</strong> <span>{{careerData.tdmduration || '-'}}</span></p>
        </div>
    </div>
    {{/if}}
    <div class="footer">
        由 DeltaForce-Plugin-Yunzai 强力驱动
    </div>
</div>
{{/block}} 